import Base from '../Base64.js'
import axios from '../http/htttp.js'
import Cookies from 'js-cookie'
// 登入
export function request(username, password, yzma) {
	return axios({
		method: 'get',
		params: {
			_gp: 'admin',
			_mt: 'login',
			username: username,
			password: password,
			verifyCode: yzma
		}
	})
}
// 退出登入
export function Logout() {
	return axios({
		method: 'get',
		params: {
			_gp: 'admin',
			_mt: 'logout',
			AdminToken: Cookies.get('AdminToken')
		}
	})
}
// 权限列表存储
export function info() {
	return axios({
		method: "get",
		params: {
			_gp: "admin",
			_mt: "info"
		}
	});
}
